package com.example.mangroves.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mangroves.entity.Phenology;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PhenologyMapper extends BaseMapper<Phenology> {
    // 这里可以添加特定于Phenology表的方法，比如复杂的查询或更新
    // MyBatis-Plus将处理基本的CRUD操作，无需额外定义
    @Insert("INSERT INTO phenology (time, ndvi, roi_ndvi, gcc, gvi, rcc, bcc, low_lai, fvc) VALUES (#{time}, #{ndvi}, #{roiNdvi}, #{gcc}, #{gvi}, #{rcc}, #{bcc}, #{lowlai}, #{fvc})")
    int insertPhenology(Phenology phenology);
}
